package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedou.sdk.params.bean.AgreementModel;

/**
 * Created by Administrator on 2017/6/6 0006.
 */
public class AgreementResponseParams extends ResponseParams<AgreementResponseParams.AgreementData> {

    public AgreementResponseParams() {

    }

    protected AgreementResponseParams(Parcel in) {
        super(in);
    }

    public static class AgreementData implements Parcelable {

        public static final Creator<AgreementData> CREATOR = new Creator<AgreementData>() {
            @Override
            public AgreementData createFromParcel(Parcel source) {
                return new AgreementData(source);
            }

            @Override
            public AgreementData[] newArray(int size) {
                return new AgreementData[size];
            }
        };
        private AgreementModel agreement_popup;

        public AgreementModel getAgreement_popup() {
            return agreement_popup;
        }

        public void setAgreement_popup(AgreementModel agreement_popup) {
            this.agreement_popup = agreement_popup;
        }

        public AgreementData() {
        }

        protected AgreementData(Parcel in) {
            this.agreement_popup = in.readParcelable(AgreementModel.class.getClassLoader());

        }




        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeParcelable(this.agreement_popup, flags);
        }
    }
}
